﻿@model TopMenuModel
@using System.Text.RegularExpressions
@using Nop.Web.Models.Catalog;

<div class="container">
    <div class="row">
        <div class="col-lg-12">
            <div class="masthead">
                <nav role="navigation" class="navbar navbar-inverse">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">
                        <button data-target="#menu-navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand visible-xs" href="@Url.RouteUrl("HomePage")"><span style="color:#fff" class="glyphicon glyphicon-home"></span></a>
                    </div>

                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div id="menu-navbar-collapse" class="collapse navbar-collapse">
                        <ul class="nav navbar-nav">
                            @Html.Widget("header_menu_before")

                            <li class ="marked"><a href="@Url.RouteUrl("Store")">@T("HomePage")</a></li>
                            <li><a href="@Url.RouteUrl("Home")">@T("Windalert.Menu.Live")</a></li>
                            <li><a href="@Url.RouteUrl("Cameras")">@T("Windalert.Menu.LiveCameras")</a></li>
                            <li>
                                <a href="@Url.RouteUrl("Forecast", new { addDays = 0 })">
                                    @T("Windalert.Menu.WindForecast")
                                    <img src="@Html.Action("ForecastUpdated","WForecast")" width="10" height="10" alt="" />
                                </a>
                            </li>
                            <li><a href="@Url.RouteUrl("WaveForecast", new { addDays = 0 })">@T("Windalert.Menu.WaveForecast")</a></li>
                            <li><a href="@Url.RouteUrl("Metar")">@T("Windalert.Menu.Aviation")</a></li>
                            <li><a href="@Url.RouteUrl("ContactUs")">@T("ContactUs")</a></li>
                            <li class="marked"><a href ="@Url.RouteUrl("Boards")">@T("Windalert.Menu.SecondHand")</a></li>
                            @*<li class="dropdown">
                                    <a href="#" data-toggle="dropdown" class="dropdown-toggle">@T("Windalert.Menu.Boards") <span class="caret"></span></a>
                                    <ul class="dropdown-menu">
                                        <li><a href="@Url.RouteUrl("NewsArchive")">@T("News")</a></li>
                                        @if (Model.BlogEnabled)
                                        {
                                        <li><a href="@Url.RouteUrl("Blog")">@T("Blog")</a></li>
                                        }
                                        @if (Model.ForumEnabled)
                                        {
                                        <li><a href="@Url.RouteUrl("Boards")">@T("Forum.Forums")</a></li>
                                        }
                                    </ul>
                                </li>*@
                            @Html.Widget("header_menu_after")
                        </ul>
                        @Html.Action("SearchBox", "Catalog")
                    </div><!-- /.navbar-collapse -->
                </nav>
            </div>
        </div>
    </div>
</div>